<include file="public@header" />
</head>

<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:url('AdminBrand/index')}">汽车品牌列表</a></li>
            <li><a href="{:url('AdminBrand/add')}">添加汽车品牌</a></li>
            <li class="active"><a href="#">编辑汽车品牌</a></li>
            <!--<li><a  href="{:url('nav/edit')}" >{:lang('ADMIN_NAV_EDIT')}</a></li>-->
        </ul>
        <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminBrand/editPost')}">

            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="form-required">*</span>品牌名称:</label>
                <div class="col-md-6 col-sm-10">
                    <input type="text" class="form-control" name="name" value="{$brand.name}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="input-icon">缩略图</label>
                <div class="col-md-6 col-sm-10">
                    <input type="hidden" name="icon" id="thumbnail" value="{$brand.icon|default=''}">
                    <a href="javascript:uploadOneImage('图片上传','#thumbnail');">
                        <if condition="empty($brand.icon)">
                            <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumbnail-preview" width="135" style="cursor: pointer" />
                            <else/>
                            <img src="{:cmf_get_image_preview_url($brand.icon)}" id="thumbnail-preview" width="135" style="cursor: pointer" />
                        </if>
                    </a>
                    <input type="button" class="btn btn-sm btn-cancel-thumbnail" value="取消图片">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">状态:</label>
                <div class="col-md-6 col-sm-10">
                    <select name="status" class="form-control">
					<foreach name="arrStatus" key="k" item="vo">
						<option value="{$k}" {$brand.status == $k?'selected':''} >{$vo}</option>
					</foreach>
				</select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span class="form-required">*</span>排序:</label>
                <div class="col-md-6 col-sm-10">
                    <input type="text" class="form-control" name="list_order" value="{$brand.list_order|default=" 0 "}">
                </div>
            </div>
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" class="form-control" name="id" value="{$brand.id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
                <a class="btn btn-default" href="__URL__">返回</a>
            </div>
        </form>

    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>